import { request } from "./request"

//查询我的关注数量
export const myFollowNumber = (data = {}) => {
    return request('post', '/my/myFollowNumber?userId=' + data.userId);
}

//查询我的粉丝
export const myFansNumber = (data = {}) => {
    return request('post', '/my/myFansNumber?userId=' + data.userId);
}
//查询我的获赞与收藏
export const selectLikeNumber = (data = {}) => {
    return request('get', '/my/selectLikeNumber', data);
}

//查询我点赞过的活动 动态
export const selectLike = (data = {}) => {
    return request('get', '/my/selectLike', data);
}


//根据用户id查询发布过的动态及动态的 浏览量 点赞数 评论数
export const selectMyDynamics = (data = {}) => {
    return request('get', '/my/selectMyDynamics', data);
}

//修改用户信息
export const myUserInfoUpdate = (data = {}) => {
    return request('put', '/my', data, true);
}

//获取用户信息
export const getUserInfo = (data = {}) => {
    return request('get', `/my/${data.id}`);
}

//意见反馈
export const feedbackAdd = (data = {}) => {
    return request('post', '/town/feedback', data);
}


//意见反馈
export const activity_Registered = (data = {}) => {
    return request('get', '/view/activity_information/selectActivityRegistration', data);
}

//删除用户动态
export const UserDynamics_delete = (data = {}) => {
    return request('get', '/my/removeDyById', data);
}


//获取关注用户列表
export const followUser_list = (data = {}) => {
    return request('get', '/my/myFollowList', data);
}

//获取粉丝列表
export const fans_list = (data = {}) => {
    return request('get', '/my/myFans', data);
}

//获取收藏与点赞的动态列表
export const favoriteLikes_list = (data = {}) => {
    return request('get', '/my/getLikeAndCollection', data);
}

//获取个人主页信息
export const personalInformation = (data = {}) => {
    return request('get', '/dynamics/selectUserInformation', data);
}

//查看别人的用户动态
export const otherDynamics_list = (data = {}) => {
    return request('get', '/dynamics/selectUserDy', data);
}


//个人主页关注用户或取消用户
export const followUser_opt = (data = {}) => {
    return request('get', '/follow/followUsers', data);
}

//获取活动码数据
export const selectMyActivityCode = (data = {}) => {
    return request('get', '/view/activity_information/selectMyActivityCode', data);
}

//获取红包卡卷列表
export const cardVoucherList = (data = {}) => {
    return request('get', '/my/myCouponCode', data);
}

//获取核销记录
export const writeOffList = (data = {}) => {
    return request('get', '/town/venue/getVenueWriteOff', data);
}

//获取卡券详情数据
export const cardVoucherDetail = (data = {}) => {
    return request('get', '/my/myCouponCodeDetail', data);
}

//获取商家列表 
export const venueList = (data = {}) => {
    return request('get', '/my/getCodeUseVenue', data);
}

//获取签到扫码管理员页面数据 
export const confirmSignIn = (data = {}) => {
    return request('post', '/view/activity_information/confirmSignIn', data, false);
}

//输入报名码签到
export const ConfirmationCode = (data = {}) => {
    return request('get', '/view/activity_information/ConfirmationCode', data, false);
}

//核销扫码结果接口
export const VenueScCode = (data = {}) => {
    return request('get', '/town/venue/VenueScCode', data, false);
}

//输入核销码核销接口
export const VenueScNumber = (data = {}) => {
    return request('get', '/town/venue/VenueScNumber', data, false);
}






